#include "tkeypresseater.h"
#include "QtGui"
#include "iostream"

TKeyPressEater::TKeyPressEater(QObject *parent) :
    QObject(parent)
{
}

bool TKeyPressEater::eventFilter(QObject *obj, QEvent *event)
 {
    std::cout << event->type() << std::endl;
    if (event->type() == QEvent::WindowStateChange){
        std::cout << "Orororo" << std::endl;
        return true;
    }else{
        return false;
    }
 }
